<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>老侯代读</title>
    <meta name="description" content=""/>
    <meta name="keywords" content=""/>
    <link rel="stylesheet" href="/css/style.css">
    <script src="/js/jquery.min.js"></script>
    <script src="/js/js.js"></script>
    <script src="/js/mask.js"></script>
</head>
<body>
<div class="container">
    <div class="customer-head">
        <div class="cus-head-con">
            <p class="cus-head-tit">佣金总计</p>
            <p class="">
                @if($entMemberDRP->IsRebate==0)
                    <span class="cus-head-txt">{{$entMemberDRP->SalesMoney}}.00</span>
                @else
                    <span class="cus-head-txt">{{$entMemberDRP->MemBalances}}.00</span>
                @endif
            </p>
            <a id="famTips" class="fam-tips"><img src="/images/wran.png" alt=""></a>

        </div>
        @if($entMemberDRP->FinishMoney<$entMemberDRP->SalesMoney)
            <div class="go-get-money ">
                <p class="go-to-money">
                    @if($entMemberDRP->FinishMoney>=$entMemberDRP->SalesMoney)
                        <a href="/partner/bankcodelist.html"><i class="get-money-icon act"></i>佣金提现</a>
                    @else
                        <a href="#"><i class="get-money-icon"></i>佣金提现</a>
                    @endif
                </p>
                <p class="get-money-tips">
                    您还需完成<span><?php $prince1 = $entMemberDRP->SalesMoney - $entMemberDRP->FinishMoney;echo $prince1 . '.00';?></span>元的销售任务才可进行提现
                </p>

            </div>
        @else
            @if($entMemberDRP->MemBalances<=0)
                <div class="go-get-money ">
                    <p class="go-to-money">
                            <a href="#"><i class="get-money-icon"></i>佣金提现</a>
                    </p>
                </div>
                @else
                <div class="go-get-money act">
                    <p class="go-to-money">
                        <a href="/partner/bankcodelist.html"><i class="get-money-icon"></i>佣金提现</a>
                    </p>
                </div>
                @endif
        @endif
    </div>
    <div class="main">
        <ul class="main-info">
            @foreach($entWithdrawMoneyLog as $data)
                @if($data->States==2)
                    <li>
                        <p class="operation-tit">
                            <span class="operation">提现失败返还 </span>
                            <span class="operation-numb r add"><i>金额</i> +{{$data->WithdrawMoney}}</span>
                        </p>
                        <p class="">
                            <span class="operation-account">备注 <i>{{$data->WithdrawRemark}}</i></span>
                            <span class="operation-time">{{$data->AddDate}}</span>
                        </p>
                    </li>
                    <li>
                        <p class="operation-tit">
                            <span class="operation">提现<i>[失败]</i></span>
                            <span class="operation-numb r add">-{{$data->WithdrawMoney}}</span>
                        </p>
                        <p class="">
                            <span class="operation-account">账户 <i>*****<?php echo substr($data->CardNo, -4);?></i></span>
                            <span class="operation-time">{{$data->AddDate}}</span>
                        </p>
                    </li>
                @else
                    @if($data->States==0)
                        <li>
                            <p class="operation-tit">
                                <span class="operation">提现 <i>[处理中]</i></span>
                                <span class="operation-numb r reduce"><i>金额</i> -{{$data->WithdrawMoney}}</span>
                            </p>
                            <p class="">
                                <span class="operation-account">账户 <i>*****<?php echo substr($data->CardNo, -4);?></i></span>
                                <span class="operation-time">{{$data->AddDate}}</span>
                            </p>
                        </li>
                    @else
                        <li>
                            <p class="operation-tit">
                                <span class="operation">提现 <i>[提现成功]</i></span>
                                <span class="operation-numb r reduce"><i>金额</i> -{{$data->WithdrawMoney}}</span>
                            </p>
                            <p class="">
                                <span class="operation-account">账户 <i>*****<?php echo substr($data->CardNo, -4);?></i></span>
                                <span class="operation-time">{{$data->AddDate}}</span>
                            </p>
                        </li>
                    @endif
                @endif
            @endforeach

            @foreach($entPushMoneyLog as $dataTwo)

                    @if($dataTwo->IsFinish==0)
                        @if($dataTwo->Scale=='0.05')
                            <li>
                                <p class="operation-tit">
                                    <span class="operation">任务</span>
                                    <span class="operation-numb r">
                                    <i>完成金额</i>￥{{$dataTwo->TotalMoney}}</span>
                                </p>
                                <p class="">
                                    @if($dataTwo->MemberType==1)
                                        <span class="operation-account">下线合伙人“{{$dataTwo->YourName}}”发展新合伙人</span>
                                    @else
                                        <span class="operation-account">下线合伙人“{{$dataTwo->YourName}}”发展新会员</span>
                                    @endif
                                    <span class="operation-time">{{$dataTwo->AddDate}}</span>
                                </p>
                            </li>
                        @else
                            <li>
                                <p class="operation-tit">
                                    <span class="operation">任务</span>
                                    <span class="operation-numb r">
                            <i>完成金额</i>￥{{$dataTwo->TotalMoney}}</span>
                                </p>
                                <p class="">
                                    @if($dataTwo->MemberType==1)
                                        <span class="operation-account">发展“{{$dataTwo->YourName}}”成为了会员</span>
                                    @else
                                        <span class="operation-account">发展“{{$dataTwo->YourName}}”成为了合伙人</span>
                                    @endif
                                    <span class="operation-time">{{$dataTwo->AddDate}}</span>
                                </p>
                            </li>
                        @endif
                    @else
                        @if($dataTwo->Scale=='0.05')
                            <li>
                                <p class="operation-tit">
                                    <span class="operation">销售</span>
                                    <span class="operation-numb r">
                        <i>提成</i>+{{$dataTwo->PayMoney}}</span>
                                </p>
                                <p class="">
                                    @if($dataTwo->MemberType==1)
                                        <span class="operation-account">下线合伙人“{{$dataTwo->YourName}}”发展新会员</span>
                                    @else
                                        <span class="operation-account">下线合伙人“{{$dataTwo->YourName}}”发展新合伙人</span>
                                    @endif
                                    <span class="operation-time">{{$dataTwo->AddDate}}</span>
                                </p>
                            </li>
                        @else
                            @if($dataTwo->PuMoID==$id)
                                <?php $u= $dataTwo->TotalMoney-$entMemberDRP->SalesMoney;$ul=$dataTwo->TotalMoney-$u;?>
                                <li>
                                    <p class="operation-tit">
                                        <span class="operation">销售</span>
                                        <span class="operation-numb r add"><i>完成金额</i><?php echo $ul;?></span>
                                        <span class="operation-numb r over"><i>提成</i>+{{$dataTwo->PayMoney}}</span>
                                        <span class="operation-numb r add"><i>超出任务</i>{{$dataTwo->TotalMoney-$entMemberDRP->SalesMoney}}</span>
                                    </p>
                                    <p class="">
                                        @if($dataTwo->MemberType==1)
                                            <span class="operation-account">发展“{{$dataTwo->YourName}}”成为了会员</span>
                                        @else
                                            <span class="operation-account">发展“{{$dataTwo->YourName}}”成为了合伙人</span>
                                        @endif
                                        <span class="operation-time">{{$dataTwo->AddDate}}</span>
                                    </p>
                                </li>
                                @else
                                <li>
                                    <p class="operation-tit">
                                        <span class="operation">销售</span>
                                        <span class="operation-numb r">
                        <i>提成</i>+{{$dataTwo->PayMoney}}</span>
                                    </p>
                                    <p class="">
                                        @if($dataTwo->MemberType==1)
                                            <span class="operation-account">发展“{{$dataTwo->YourName}}”成为了会员</span>
                                        @else
                                            <span class="operation-account">发展“{{$dataTwo->YourName}}”成为了合伙人</span>
                                        @endif
                                        <span class="operation-time">{{$dataTwo->AddDate}}</span>
                                    </p>
                                </li>
                                @endif


                        @endif

                    @endif

            @endforeach

        </ul>
    </div>

</div>

<div id="mask" class="mask">
    <div id="mustReadBox" class="must-read-box act">
        <p class="litter-tips">温馨提示</p>
        <ul class="must-read-items wrap">
            <li>1.预计佣金需满7天后自动转入可提现佣金。</li>
            <li>2.每次提现必须大于等于100元，如希望做慈善可把佣金捐献。</li>
            <li>3.佣金提现目前仅限用支付宝方式、银联卡、其它提现途径<br/>
                将于今后逐渐开放。
            </li>
            <li>4.扫描您分享的二维码后，关系锁定时间最长为48小时，48
                小时后如用户未付款，再扫描其他人二维码成交将会计入别人的收益
            </li>
        </ul>
        <span id="close" class="close">×</span>
    </div>
</div>
<script>
    $(function () {
        var maskObj = new mask($("#famTips"), $("#mask"), $("#close"));
        $("#mustReadBox").on("click", function (e) {
            maskObj.stopPro(e);
        });
    })
</script>
</body>
</html>